<%@ taglib prefix="s" uri="/struts-tags" %>
<body>
<script type='text/javascript'>
$(document).ready(function() {
	 
	$("#tabView").tabs({
	    select: function(event, ui) {
	        var url = $.data(ui.tab, 'load.tabs');
	        if( url ) {
	            location.href = url;
	            return false;
	        }
	        return true;
	    },
	    selected: 0
	    
	});
 
});
</script>

   <div id="container">   
      <div id="left"">
         <br />
         
         <div id="tabView">
            <ul>
<!--                 <li><a href="#detailTab">Add Survey</a></li>
               <li><a href="<s:url value="/survey/question.action" />">Add Questions</a></li> -->
               <li><a href="<s:url value="/surveyquestion.add" />">Add Survey</a></li>
               <li><a href="#detailTab">Add Questions</a></li>
               
            </ul>
            
            <div id="detailTab">                  
               <s:actionerror />
               <s:form namespace="/example" action="add" id="entity">
               <s:textarea name="questionText" label="%{getText('label.entity.question')}" cols="35" rows="3" required="true" />
               
                  <tr>
                     <td colspan="2">
                        <br />
                        <s:submit value="Save" theme="simple" /> &nbsp; <input type="submit" value="Cancel" onclick="location.href='<s:url namespace="/survey" action="list" includeParams="none" />'; return false;" />
                     </td>
                  </tr>
           
               </s:form>
            </div>
         </div>
      </div>
   </div>
</body>

